/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package aso.upna.information;

/**
 *
 * @author triki
 */

public class StreamInfo {

    private int total_size;
    private int current_size;

    public StreamInfo(int total)
    {
        total_size = total;
        current_size = 0;
    }

    public int getTotalSize()
    {
        return total_size;
    }

    public int getCurrentSize()
    {
        return current_size;
    }

    public void setCurrentSize(int current)
    {
        current_size = current;
    }

    public int getPercetCompleted()
    {
        int percent;

        percent = ((current_size*100)/total_size);

        if(percent > 100)
            percent =  100;

        return percent;
    }
}
